<?php

/**
 * 商品分类
 */

namespace app\mall\api;

use \app\base\api\BaseApi;

class ClassApi extends BaseApi {

    /**
     * 列表
     */
    public function index() {

        $list = target('mall/MallClass')->loadList();
        $treeList = target('mall/MallClass')->getTree($list);
        $this->success('ok', $treeList);

    }

}